from likeshop_project.BASE.myBase import Tools


class register_module(Tools):

    path = "api/account/register"

    def register_action(self,mobile,password,client=4):
        url = self.host_url+ self.path
        data = {
            "mobile": mobile,
            "password": password,
            "client": client,
        }
        msg = self.session.post(url=url,json=data)
        return msg.json()